﻿using Starring.Framework.Factory;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace LigerUi.MVC.BusinessLogic.Employee
{
    public class Employee : IEmployee.IEmployee
    {

        public List<LigerUi.MVC.BusinessEntity.Employee.PhoneAttributionModel> ReadList(LigerUi.MVC.BusinessEntity.Employee.PhoneAttributionModel filter)
        {
            LigerUi.MVC.DataAccess.IEmployee.IEmployee dal = ObjectFactory.CreateObject<LigerUi.MVC.DataAccess.IEmployee.IEmployee>();
            return dal.ReadList(filter);
        }

        public List<LigerUi.MVC.BusinessEntity.Employee.PhoneAttributionModel> ReadList(Starring.Framework.Data.DataOrder order, Starring.Framework.Data.PagingEntity paging, LigerUi.MVC.BusinessEntity.Employee.PhoneAttributionModel filter)
        {
            LigerUi.MVC.DataAccess.IEmployee.IEmployee dal = ObjectFactory.CreateObject<LigerUi.MVC.DataAccess.IEmployee.IEmployee>();
            return dal.ReadList(order, paging, filter);
        }
    }
}
